# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=qalculate-qt
pkgver=4.6.1
pkgrel=1
pkgdesc='Qt frontend for libqalculate'
arch=(x86_64)
url='https://qalculate.github.io/'
license=(GPL)
depends=(libqalculate qt6-svg hicolor-icon-theme)
makedepends=(qt6-tools)
source=(https://github.com/Qalculate/qalculate-qt/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('33541ed71be9e179760c3e38d65dcb9c2b10940ed8c197428832bc3537e2225d')

build() {
  cd $pkgname-$pkgver
  qmake6 PREFIX=/usr
  make
}

package() {
  cd $pkgname-$pkgver
  make INSTALL_ROOT="$pkgdir" install
}
